package com.micro.glszh.stat.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.micro.glszh.stat.dao.BizDiseaseDetailMapper;
import com.micro.glszh.stat.domain.BizDiseaseDetail;
import com.micro.glszh.stat.service.BizDiseaseDetailService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * BizDiseaseDetailServiceImpl
 *
 * @Author gaopengfei
 * @create 2024/10/21 15:53
 */
@RequiredArgsConstructor
@Service
public class BizDiseaseDetailServiceImpl extends ServiceImpl<BizDiseaseDetailMapper, BizDiseaseDetail> implements BizDiseaseDetailService {

    private final BizDiseaseDetailMapper bizDiseaseDetailMapper;

    @Override
    public List<BizDiseaseDetail> selectDiseaseDetailList(Long recordId) {
        QueryWrapper<BizDiseaseDetail> wrapper = new QueryWrapper<>();
        wrapper.eq("record_id", recordId);
        return bizDiseaseDetailMapper.selectList(wrapper);
    }
}
